package com.hl.order.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品列表对象 goods
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id，主键自增 */
    private Integer goodsId;

    /** 店铺id（商品所属店铺） */
    @Excel(name = "店铺id", readConverterExp = "商=品所属店铺")
    private Integer shopId;

    /** 商品类型 */
    @Excel(name = "商品类型")
    private String goodsType;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String goodsDesc;

    /** 商品创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "商品创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date goodsCreateTime;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String goodsImage;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private Integer goodsPrice;

    /** 商品打包费 */
    @Excel(name = "商品打包费")
    private Integer goodsPackage;

    /** 商品状态（1：上架 0：下架，默认上架） */
    @Excel(name = "商品状态", readConverterExp = "1=：上架,0=：下架，默认上架")
    private Integer goodsStatus;

    /** 是否为推荐商品（1：推荐，默认否） */
    @Excel(name = "是否为推荐商品", readConverterExp = "1=：推荐，默认否")
    private Integer recommend;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Integer stock;

    /** 商品销量 */
    @Excel(name = "商品销量")
    private Integer number;

    public void setGoodsId(Integer goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Integer getGoodsId() 
    {
        return goodsId;
    }

    public void setShopId(Integer shopId) 
    {
        this.shopId = shopId;
    }

    public Integer getShopId() 
    {
        return shopId;
    }

    public void setGoodsType(String goodsType) 
    {
        this.goodsType = goodsType;
    }

    public String getGoodsType() 
    {
        return goodsType;
    }

    public void setGoodsDesc(String goodsDesc) 
    {
        this.goodsDesc = goodsDesc;
    }

    public String getGoodsDesc() 
    {
        return goodsDesc;
    }

    public void setGoodsCreateTime(Date goodsCreateTime)
    {
        this.goodsCreateTime = goodsCreateTime;
    }

    public Date getGoodsCreateTime()
    {
        return goodsCreateTime;
    }

    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }

    public void setGoodsImage(String goodsImage) 
    {
        this.goodsImage = goodsImage;
    }

    public String getGoodsImage() 
    {
        return goodsImage;
    }

    public void setGoodsPrice(Integer goodsPrice) 
    {
        this.goodsPrice = goodsPrice;
    }

    public Integer getGoodsPrice() 
    {
        return goodsPrice;
    }

    public void setGoodsPackage(Integer goodsPackage) 
    {
        this.goodsPackage = goodsPackage;
    }

    public Integer getGoodsPackage() 
    {
        return goodsPackage;
    }

    public void setGoodsStatus(Integer goodsStatus) 
    {
        this.goodsStatus = goodsStatus;
    }

    public Integer getGoodsStatus() 
    {
        return goodsStatus;
    }

    public void setRecommend(Integer recommend) 
    {
        this.recommend = recommend;
    }

    public Integer getRecommend() 
    {
        return recommend;
    }

    public void setStock(Integer stock) 
    {
        this.stock = stock;
    }

    public Integer getStock() 
    {
        return stock;
    }

    public void setNumber(Integer number) 
    {
        this.number = number;
    }

    public Integer getNumber() 
    {
        return number;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodsId", getGoodsId())
            .append("shopId", getShopId())
            .append("goodsType", getGoodsType())
            .append("goodsDesc", getGoodsDesc())
            .append("goodsCreateTime", getGoodsCreateTime())
            .append("goodsName", getGoodsName())
            .append("goodsImage", getGoodsImage())
            .append("goodsPrice", getGoodsPrice())
            .append("goodsPackage", getGoodsPackage())
            .append("goodsStatus", getGoodsStatus())
            .append("recommend", getRecommend())
            .append("stock", getStock())
            .append("number", getNumber())
            .toString();
    }
}
